cmake_minimum_required(VERSION 3.5)
project(webrtc_common_audio LANGUAGES CXX C)

include(../predefined.cmake)

include_directories(./ ../
)

set(COMMON_AUDIO_SOURCE_LIST
    ./audio_util.cc
    ./channel_buffer.cc
    ./resampler/push_resampler.cc
    ./resampler/push_sinc_resampler.cc
    ./resampler/sinc_resampler.cc
    ./resampler/sinc_resampler_avx2.cc
    # ./resampler/sinc_resampler_neon.cc
    ./resampler/sinc_resampler_sse.cc
    ./third_party/ooura/fft_size_128/ooura_fft.cc
    # ./third_party/ooura/fft_size_128/ooura_fft_mips.cc
    # ./third_party/ooura/fft_size_128/ooura_fft_neon.cc
    ./third_party/ooura/fft_size_128/ooura_fft_sse2.cc
    ./third_party/ooura/fft_size_256/fft4g.cc
    ./signal_processing/dot_product_with_scale.cc
    ./signal_processing/splitting_filter2.c
)

add_library(webrtc_common_audio SHARED ${COMMON_AUDIO_SOURCE_LIST})
